import request from '@/utils/request'
export function tableDataList(query) {
  return request({
    url: '/newPolicy/list',
    method: 'get',
    params: query
  })
}
// 添加关键词
export function addKeywordTag(query) {
  return request({
    url: '/newPolicy/addKeyword',
    method: 'post',
    data: query,
  })
}
// 删除关键词
export function deleteKeywordTag(query) {
  return request({
    url: '/newPolicy/deleteKeyword',
    method: 'post',
    data: query,
  })
}
// 删除policy
export function deletePolicy(query) {
  return request({
    url: '/newPolicy/delete',
    method: 'get',
    params: query
  })
}
// 通过id查询
export function getNewpolicyById(query) {
  return request({
    url: '/newPolicy/getById',
    method: 'get',
    params: query
  })
}
// 更新政策
export function updNewpolicy(query) {
  return request({
    url: '/newPolicy/update',
    method: 'post',
    data: query,
  })
}





